package net.ermannofranco.genericdaojdbc.clause;

public final class MultiClause extends Clause {

	private final Clause[] clauses;
	private final String concat;

	protected MultiClause(String concat,Clause... clauses) {
		if (clauses==null||clauses.length==0){
			throw new IllegalArgumentException("numero clausole non valido");
		}
		this.concat = concat;
		this.clauses = clauses;
	}

	public String getConcat() {
		return concat;
	}

	@Override
	public Clause[] getInnerClauses() {
		return clauses;
	}

}
